/*
 * UpdateSolver.h
 *
 *  Created on: 2021年8月11日
 *      Author: Administrator
 */

#ifndef JNI_USER_UPDATESOLVER_H_
#define JNI_USER_UPDATESOLVER_H_

#include <string>
#include "grow_server.h"
#include <http/http_client.h>

typedef std::function<void (const VersionInformation& info)> VersionCallback;

void startCheckNewVersion(const std::string& app_name,
    const VersionCallback& callback);

void updateProcessing(const http::HTTPClient::ProgressCallback& progress);

#endif /* JNI_USER_UPDATESOLVER_H_ */
